
# fmt
#add_subdirectory(fmt/fmt-8.0.1)

#enable_testing()
#set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
#add_subdirectory(googletest)


#add_subdirectory(getpot)
add_subdirectory(getpot)

include(FetchContent)
FetchContent_Declare(fmt
  URL ${PROJECT_SOURCE_DIR}/contrib/fmt/fmt-8.0.1
)
FetchContent_MakeAvailable(fmt)


FetchContent_Declare(googletest
  URL ${PROJECT_SOURCE_DIR}/contrib/googletest
  GIT_TAG master
)
FetchContent_MakeAvailable(googletest)


FetchContent_Declare(
  Eigen
  URL ${PROJECT_SOURCE_DIR}/contrib/eigen-3.4.0.zip
  )
set(EIGEN_BUILD_DOC OFF)
# note: To disable eigen tests,
# you should put this code in a add_subdirectory to avoid to change
# BUILD_TESTING for your own project too since variables are directory
# scoped
set(BUILD_TESTING OFF)

set(EIGEN_BUILD_PKGCONFIG OFF)
set( OFF)
FetchContent_MakeAvailable(Eigen)

#add_subdirectory(eigen-3.4.0)